﻿using ATTools.Models;
using Orchard.ContentManagement.Handlers;
using Orchard.Environment.Extensions;
using Orchard.Data;

namespace Orchard.ATTools.Handlers
{
    [OrchardFeature("ATTools")]
    public class ATToolsSettingsHandler : ContentHandler
    {
        public ATToolsSettingsHandler(IRepository<ATToolsSettingsPartRecord> repository)
        {
            Filters.Add(new ActivatingFilter<ATToolsSettingsPart>("Site"));
            Filters.Add(StorageFilter.For(repository));
        }
    }
}